/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sapra.dep;

import java.util.Date;

/**
 *
 * @author ppratsc
 */
public class Practicante implements Comparable<Practicante> {
    public int id = 0;
    public String empleado = null;
    public String nombre = null;
    public String paterno = null;
    public String materno = null;
    public String cuenta = null;
    public String numTarjeta=null;
    public String status=null;
    public Date fechaInicio = null;
    public Date fechaTermino = null;
    public Date fechaCancelacion = null;
    public double sueldo = 0;
    public int dias = 0;
    public double neto = 0;
    public boolean inicia = false;
    public Poliza poliza = null;
    public double polizaEmpresa = 0;
    public double polizaPracticante = 0;
    public double apagar = 0;
    public double ajuste = 0;
    public double deduccion = 0;
    public String centro = null;
    public String departamento;
    public int fk_empresaId=0;
    public String toString(){
        String resp = "";
        resp += (paterno != null)?paterno+" ":" ";
        resp += (materno != null)?materno+" ":" ";
        resp += (paterno != null)?nombre:" ";
        return resp;
    }

    public int compareTo(Practicante o) {
        int lastCmp = nombre.compareTo(o.nombre);
        return (lastCmp != 0 ? lastCmp :
                paterno.compareTo(o.paterno));

    }
}
